Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix receive buffer bug #26. Added rust tests and vcan testing harness utilities. #25

Merged
merged 10 commits into from
Jan 19, 2024

Conversation

leighleighleigh
Copy link
Owner

@leighleighleigh leighleighleigh commented Nov 12, 2023

Example output from cargo test -- --show-output --test-threads 1

running 9 tests
test test_bus_open_close ... ok
test test_id_filter ... ok
test test_receive_buffer ... ok
test test_receive_buffer_alternate ... ok
test test_receive_buffer_overflow ... ok
test test_receive_timeout ... ok
test test_send ... ok
test test_send_receive ... ok
test test_vcan_harness ... ok

successes:

---- test_bus_open_close stdout ----
Created vcan7
Deleted vcan7

---- test_id_filter stdout ----
Created vcan7
210#CCDD
Deleted vcan7

---- test_receive_buffer stdout ----
Created vcan7
Received 30 frames
Deleted vcan7

---- test_receive_buffer_alternate stdout ----
Created vcan7
Sent 30 frames
Received 30 frames
Deleted vcan7

---- test_receive_buffer_overflow stdout ----
Created vcan7
Sent 100 frames
Received 50 frames
Deleted vcan7

---- test_receive_timeout stdout ----
Created vcan7
Deleted vcan7

---- test_send stdout ----
Created vcan7
Deleted vcan7

---- test_send_receive stdout ----
Created vcan7
123#0A0A
Deleted vcan7

---- test_vcan_harness stdout ----
Created vcan7
Deleted vcan7


successes:
    test_bus_open_close
    test_id_filter
    test_receive_buffer
    test_receive_buffer_alternate
    test_receive_buffer_overflow
    test_receive_timeout
    test_send
    test_send_receive
    test_vcan_harness

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 11.07s

As a result of writing these tests, bug #26 was identified and resolved.

@leighleighleigh leighleighleigh added the enhancement New feature or request label Nov 12, 2023
@leighleighleigh leighleighleigh changed the title Added rust tests and vcan testing harness utilities. Fix recieve buffer bug #26. Added rust tests and vcan testing harness utilities. Nov 12, 2023
@leighleighleigh leighleighleigh changed the title Fix recieve buffer bug #26. Added rust tests and vcan testing harness utilities. Fix receive buffer bug #26. Added rust tests and vcan testing harness utilities. Nov 12, 2023
@leighleighleigh leighleighleigh merged commit 316faee into main Jan 19, 2024
1 check passed
@leighleighleigh leighleighleigh deleted the tests branch January 19, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant